#!/usr/bin/env python3

import rospy
from DrRobotController_six_axes_can.msg import detect_pose_P_Y_R
# import DrRobotController_six_axes as dr

def callback(data):
    import DrRobotController_six_axes as dr
    print(dr.detect_pose_P_Y_R(id_num=data.id_num))
    rospy.loginfo("detect_pose_P_Y_R_node")


def listener():
    rospy.init_node("detect_pose_P_Y_R", anonymous=True)
    rospy.Subscriber("detect_pose_P_Y_R", detect_pose_P_Y_R, callback)
    rospy.spin()


if __name__ == '__main__':
    listener()